Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract loader-v2-interface crate #4487

Merged
merged 4 commits into from
Jan 22, 2025

Conversation

kevinheavey
Copy link

Problem

solana_program::loader_instruction imposes a solana_program dep on solana_transaction_status.

Summary of Changes

  • Move to a new crate and re-export for backwards compatibility. I called this one solana-loader-instruction instead of solana-loader-interface because the instruction module is the only thing in the crate
  • Update solana-transaction-status to use the new crate

@kevinheavey kevinheavey force-pushed the extract-loader-instruction branch from 70581d4 to f35686a Compare January 16, 2025 00:52
Copy link

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just the naming bit

@@ -0,0 +1,31 @@
[package]
name = "solana-loader-instruction"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we call this solana-loader-v2-interface? the v2 bit so that people are less tempted to use it, especially when they see v3 and v4, and interface for consistency with the other loader crates, even though there's no state.

I could even be convinced to go with v1 since they share an interface.


[features]
bincode = ["dep:solana-instruction", "serde"]
dev-context-only-utils = ["bincode"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this feature needed?

@kevinheavey kevinheavey changed the title Extract loader-instruction crate Extract loader-v2-interface crate Jan 22, 2025
joncinque
joncinque previously approved these changes Jan 22, 2025
Copy link

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@joncinque
Copy link

@yihau can you accept ownership of solana-loader-v2-interface?

@kevinheavey kevinheavey force-pushed the extract-loader-instruction branch from 5ffebc6 to c4bd2c2 Compare January 22, 2025 11:56
@joncinque joncinque merged commit 30735d7 into anza-xyz:master Jan 22, 2025
59 checks passed
@Lichtso
Copy link

Lichtso commented Jan 28, 2025

loader-v2 program management has been deactivated for a while (a year or longer). Why not remove it entirely?

@kevinheavey
Copy link
Author

would be a breaking change in solana-program and solana-sdk

@Lichtso
Copy link

Lichtso commented Jan 28, 2025

Yes, but what about the deprecated attribute. It says you should use the moved crate. But it should say that this functionality is gone and will be completely removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants